package com.ruoyi.demo.config;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Slf4j
@Getter
@Setter
@Component
@Configuration
@ConfigurationProperties(prefix = "wechat")
public class WechatConfiguration {

    /**
     * 小程序配置
     */
    private Miniapp miniapp;

    @Getter
    @Setter
    public static class Miniapp {
        /**
         * 小程序 appid
         */
        private String appid;

        /**
         * 小程序密钥
         */
        private String secret;
    }
}
